<?php
/* link to joomla framework */
$l = OC_L10N::get('jobposition');
$user = PFactory::getUser();
if(isset($user->cb_usertype) && $user->cb_usertype == 'jobseeker') {
   return; 
}    
OCP\App::addNavigationEntry( array( "id" => "jobpos_index",
                                    "order" => 1,
                                    "href" => OCP\Util::linkToRoute("jobpos_index"),
                                    "class" => "hr_i_positon",
                                    "name" => "职位管理" ));

require_once(OC::$SERVERROOT.'/apps/joomla/application.php');

JLoader::import('joomla.application.component.model', JPATH_LIBRARIES);
JLoader::register("Upload", JPATH_SITE.'/components/com_easygallery/class.upload.php/class.upload.php');
JLoader::register("PCompanyHelper", OC::$SERVERROOT."/apps/company/lib/helper.php"); 
JLoader::register('AjaxJEditor', JPATH_SITE.'/components/com_ask/editor/ajaxJEditor.php');

// init pipapai application 
PFactory::init(); 

